<div class="post-title">
    <h2 class="align-center"><?= $this->title; ?></h2>
    <div>
        <form action='' method="post">
            <fieldset>
                <legend><?= $this->__('Settings'); ?></legend>
                <label><input type='checkbox' name='set[digit]' <?= isset($this->set['digit']) ? 'checked="checked"' : ''; ?>><?= $this->__('Digits'); ?></label><br />
                <label><input type='checkbox' name='set[lower]' <?= isset($this->set['lower']) ? 'checked="checked"' : ''; ?>><?= $this->__('Lower case letters (a-z)'); ?></label><br />
                <label><input type='checkbox' name='set[upper]' <?= isset($this->set['upper']) ? 'checked="checked"' : ''; ?>><?= $this->__('Upper case letters (A-Z)'); ?></label><br />
                <label><input type='checkbox' name='set[spec]'  <?= isset($this->set['spec']) ? 'checked="checked"' : ''; ?>><?= $this->__('Special characters (%, *, ?, @, #, $, ~)'); ?></label><br /><br />
                <div id='passgen-slider'></div>
                <label><?= $this->__('Password length'); ?>: <input type='text' name='set[counter]' id='counter' value="<?= $this->set['counter']; ?>" size="2"> <?= $this->__('letters'); ?></label><br />
                <input type="submit" value="<?= $this->__('Generate'); ?>">
            </fieldset><br />
        </form>
        <?php if(count($this->passwords) > 0):  ?>
        <div id='result'>
            <h3><?= $this->__('Yours passwords'); ?>:</h3>
            <ul>
                <?php foreach ($this->passwords as $value): ?>
                    <li><?= $value; ?></li>    
                <?php endforeach; ?>
            </ul>
        </div>
        <?php endif; ?>
    </div>
</div>